<?php


class Zend_Controller_Action_Helper_Role extends Zend_Controller_Action_Helper_Abstract {


    public function aliasToName($alias)
    {
        switch ($alias) {
            case 'admin': return 'ADMINISTRADOR';
           	case 'cliente': return 'CLIENTE';
            default: return 'guest';
        }
    }


    public function nameToAlias($name)
    {
        switch ($name) {
            case 'ADMINISTRADOR': return 'admin';
            case 'CLIENTE': return 'cliente';
            default: return 'guest';
        }
    }


}